/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 头部样式 */
header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

h1 {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  color: #3498db;
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 15px;
}

/* 表单区域样式 */
.form-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input, 
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-primary {
  background-color: #2ecc71;
}

.btn-primary:hover {
  background-color: #27ae60;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #3498db;
  color: #3498db;
}

.btn-outline:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* 结果展示区域样式 */
.results-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-size: 18px;
}

.results-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.result-item {
  margin-bottom: 25px;
  padding: 20px;
  border-left: 4px solid #3498db;
  background-color: #f9f9f9;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-name {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.result-name span {
  margin-left: 10px;
  font-size: 14px;
  padding: 3px 8px;
  background-color: #3498db;
  color: white;
  border-radius: 15px;
  font-weight: normal;
}

.result-meaning, .result-reason {
  margin-bottom: 15px;
  line-height: 1.8;
}

.result-meaning strong, .result-reason strong {
  color: #3498db;
  font-weight: 600;
}

.result-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .form-container, .results-container {
    padding: 15px;
  }
  
  .result-item {
    padding: 15px;
  }
  
  .result-name {
    font-size: 20px;
  }
}

/* 多轮优化提示样式 */
.optimize-tip {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #2ecc71;
  border-radius: 0 4px 4px 0;
  color: #34495e;
  font-size: 15px;
}
